package com.zb.yaml;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @Author WEN
 * @Date 2024/4/24 0024
 **/
@Component
public class MapSecret {
    private static MapSecret mapSecret;

    @PostConstruct
    public void init() {
        mapSecret = this;
    }
    @Value("${map.secret.grant_type}")
    private String mapGrantType;

    @Value("${map.secret.client_id}")
    private String mapClientId;

    @Value("${map.secret.client_secret}")
    private String mapClientSecret;

    public static String getMapGrantType() {
        return mapSecret.mapGrantType;
    }

    public static String getMapClientId() {
        return mapSecret.mapClientId;
    }

    public static String getMapClientSecret() {
        return mapSecret.mapClientSecret;
    }
}
